Remove pretty random cleanup code in _add_domain.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Fri, 16 Sep 2005 20:02:18 +0000 (20:02 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Fri, 16 Sep 2005 20:02:18 +0000 (20:02 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xend/XendDomain.py

index 5cf5fda6bece124f137aff454fec557431f27054..28834b672dae7e671b0ba073db5d98023557fe8e 100644 (file)
@@ -177,11 +177,6 @@ class XendDomain:
         @param info:   domain info object
         @param notify: send a domain created event if true
         """
-        # Remove entries under the wrong id.
-        for i, d in self.domains.items():
-            if i != d.domid:
-                del self.domains[i]
-                self.dbmap.delete(d.uuid)
         if info.domid in self.domains:
             notify = False
         self.domains[info.domid] = info